#VSRCS_RAW+=$(shell find ./vsrc -name "*.v")
#VSRCS_1995_RAW+=$(shell find ./vsrc/1995 -name "*.v")

#VSRCS=$(filter-out $(VSRCS_1995_RAW),$(VSRCS_RAW))
#VSRCS_1995=$(addprefix +1364-1995ext+v , $(VSRCS_1995_RAW))

VSRCS+=$(shell find ./vsrc -name "*.v")

CACHE_REL=$(shell find ../vsrc/cache_relate_src -name "*.v")
UNCACHE_REL=$(shell find ../vsrc/uncache_relate_src -name "*.v")

VSRCS+=$(shell find ../vsrc/scalar_core -name "*.v")
VSRCS+=$(shell find ../vsrc/tools -name "*.v")
VSRCS+=$(CACHE_REL)
#VSRCS+=$(VSRCS_1995)
CSRCS+=./csrc/main.c
INCLUDE+=-I../vsrc/scalar_core/

VFLAGS+=--Wno-fatal --cc --trace --exe

TOP=soc_axi_lite_top

all:
	@verilator $(VSRCS) $(CSRCS) --top-module $(TOP) $(VFLAGS) $(INCLUDE) 2> error.log
